package io.plus.user_interface.common.listener;

import io.plus.interactive.AsynchronousSocketChannelContext;

/**
 * 绑定用户及群组监听器;
 */
public interface BindListener {

    /**
     * 绑定群组后回调该方法
     */
    void onAfterGroupBind(AsynchronousSocketChannelContext asynchronousSocketChannelContext, String group) throws Exception;

    /**
     * 解绑群组后回调该方法
     */
    void onAfterGroupUnbind(AsynchronousSocketChannelContext asynchronousSocketChannelContext, String group) throws Exception;

    /**
     * 绑定用户后回调该方法
     */
    void onAfterUserBind(AsynchronousSocketChannelContext asynchronousSocketChannelContext, String userId) throws Exception;

    /**
     * 绑定用户后回调该方法
     */
    void onAfterUserUnbind(AsynchronousSocketChannelContext asynchronousSocketChannelContext, String userId) throws Exception;


}
